package com.zxl.grocery.webmagic.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 新闻表
 * </p>
 *
 * @author zxl
 * @since 2017-08-31
 */
@TableName("crawler_news")
public class CrawlerNews extends Model<CrawlerNews> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 所属类别
     */
	@TableField("type_id")
	private Integer typeId;
    /**
     * 标题
     */
	private String title;
    /**
     * 描述
     */
	private String info;
    /**
     * 内容
     */
	private String content;
    /**
     * 排序
     */
	private Integer sort;
    /**
     * 是否是链接
     */
	@TableField("explicit_link")
	private Integer explicitLink;
    /**
     * 链接地址
     */
	private String link;
    /**
     * 作者
     */
	private String author;
    /**
     * 来源id
     */
	@TableField("sources_id")
	private Integer sourcesId;
    /**
     * 标签
     */
	private String label;
    /**
     * 点赞
     */
	@TableField("thumb_up")
	private Integer thumbUp;
    /**
     * 是否置顶
     */
	@TableField("placed_top")
	private Integer placedTop;
    /**
     * 是否推荐
     */
	private Integer recommend;
    /**
     * 状态
     */
	private Integer status;
    /**
     * 添加时间
     */
	@TableField("create_date")
	private Date createDate;
    /**
     * 修改时间
     */
	@TableField("modify_date")
	private Date modifyDate;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getTypeId() {
		return typeId;
	}

	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getExplicitLink() {
		return explicitLink;
	}

	public void setExplicitLink(Integer explicitLink) {
		this.explicitLink = explicitLink;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Integer getSourcesId() {
		return sourcesId;
	}

	public void setSourcesId(Integer sourcesId) {
		this.sourcesId = sourcesId;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public Integer getThumbUp() {
		return thumbUp;
	}

	public void setThumbUp(Integer thumbUp) {
		this.thumbUp = thumbUp;
	}

	public Integer getPlacedTop() {
		return placedTop;
	}

	public void setPlacedTop(Integer placedTop) {
		this.placedTop = placedTop;
	}

	public Integer getRecommend() {
		return recommend;
	}

	public void setRecommend(Integer recommend) {
		this.recommend = recommend;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CrawlerNews{" +
			"id=" + id +
			", typeId=" + typeId +
			", title=" + title +
			", info=" + info +
			", content=" + content +
			", sort=" + sort +
			", explicitLink=" + explicitLink +
			", link=" + link +
			", author=" + author +
			", sourcesId=" + sourcesId +
			", label=" + label +
			", thumbUp=" + thumbUp +
			", placedTop=" + placedTop +
			", recommend=" + recommend +
			", status=" + status +
			", createDate=" + createDate +
			", modifyDate=" + modifyDate +
			"}";
	}
}
